<template>
  <div class="dashboard-container">
    <div class="app-container">
      <Toputil>
        <template slot="after">
          <el-button type="primary" size="mini" @click="open">添加权限</el-button>
        </template>
      </Toputil>
      <div class="box">
        <PermissionBody ref="pb" />
      </div>
    </div>
  </div>
</template>

<script>
import PermissionBody from "@/views/permission/PermissionBody";
export default {
  components: {
    PermissionBody
  },
  methods: {
    open() {
      this.$refs.pb.showAddPermission();
    }
  }
};
</script>

<style scoped>
.box {
  margin-top: 10px;
}
</style>